//
//package com.rt.schedulebase.service.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.rt.schedulebase.dto.DictScheduleHospitalDto;
//import com.rt.schedulebase.entity.DictScheduleHospital;
//import com.rt.schedulebase.mapper.DictScheduleHospitalMapper;
//import com.rt.schedulebase.service.IDictScheduleHospitalService;
//import org.springframework.stereotype.Service;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//@Service
//public class DictScheduleHospitalServiceImpl extends ServiceImpl<DictScheduleHospitalMapper, DictScheduleHospital> implements IDictScheduleHospitalService {
//    @Override
//    public boolean insertSelective(final DictScheduleHospital dictScheduleHospital) {
//        return retBool(baseMapper.insert(dictScheduleHospital));
//    }
//
//    @Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return retBool(baseMapper.deleteById(key));
//    }
//
//    @Override
//    public boolean updateByPrimaryKeySelective(final DictScheduleHospital dictScheduleHospital) {
//        return retBool(baseMapper.updateById(dictScheduleHospital));
//    }
//
//    @Override
//    public DictScheduleHospital selectByPrimaryKey(final String key) {
//        return baseMapper.selectById(key);
//    }
//
//    @Override
//    public List<DictScheduleHospital> getList(final DictScheduleHospitalDto dto) {
//        final QueryWrapper<DictScheduleHospital> qw = new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_CLASS", dto.getExamClass());
//        map.put("QUEUE_NAME", dto.getQueueName());
//        map.put("HOSPITAL_CODE", dto.getHospitalCode());
//        qw.allEq((Map) map, false);
//        final List<DictScheduleHospital> list = baseMapper.selectList(qw);
//        return list;
//    }
//
//    @Override
//    public List<DictScheduleHospital> getListAll() {
//        return baseMapper.selectList(null);
//    }
//
//    @Override
//    public boolean delete(final DictScheduleHospital dictScheduleHospital) {
//        final UpdateWrapper<DictScheduleHospital> uw = new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_CLASS", dictScheduleHospital.getExamClass());
//        map.put("QUEUE_NAME", dictScheduleHospital.getQueueName());
//        map.put("HOSPITAL_CODE", dictScheduleHospital.getHospitalCode());
//        uw.allEq(map, false);
//        return retBool(baseMapper.delete(uw));
//    }
//
//    @Override
//    public boolean update(final DictScheduleHospital dictScheduleHospital) {
//        final UpdateWrapper<DictScheduleHospital> uw = new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_CLASS", dictScheduleHospital.getExamClass());
//        map.put("QUEUE_NAME", dictScheduleHospital.getQueueName());
//        map.put("HOSPITAL_CODE", dictScheduleHospital.getHospitalCode());
//        uw.allEq(map, false);
//        return retBool(baseMapper.update(dictScheduleHospital, uw));
//    }
//
//    @Override
//    public DictScheduleHospital getInfo(final DictScheduleHospitalDto dto) {
//        final QueryWrapper<DictScheduleHospital> qw = new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("EXAM_CLASS", dto.getExamClass());
//        map.put("QUEUE_NAME", dto.getQueueName());
//        map.put("HOSPITAL_CODE", dto.getHospitalCode());
//        qw.allEq(map, false);
//        return baseMapper.selectOne(qw);
//    }
//}
